package com.ruoyi.zhmk.service;

import com.ruoyi.carApi.click.ICarCallBack;
import com.ruoyi.carApi.entity.CarIdentification;
import org.springframework.context.ApplicationContext;

/**
 * @Author: wwy
 * @Date: 2021/6/22 14:28
 */
public class CarCallBack implements ICarCallBack {
    public static ApplicationContext applicationContext;
    @Override
    public void invoke(CarIdentification carIdentification) {
        IZhmkCarinoutInfoService zhmkCarinoutService = applicationContext.getBean(IZhmkCarinoutInfoService.class);
        int i = zhmkCarinoutService.saveCarInfo(carIdentification);
    }
}
